<?php

class App_Forms_ImageForm extends Zend_Form
{
	public function __construct()
	{
		$this->setAttribs(array(
			'name' => 'imageForm',
			'method' => 'post',
			'enctype' => 'multipart/form-data',
			'action' => 'add'
		));
		
		$nameField = new Zend_Form_Element_Text('name');
		$nameField->setLabel('Name');
		
		$desc = new Zend_Form_Element_Textarea('description');
		$desc->setLabel('Description');
		
		$imgFile = new Zend_Form_Element_File('imgFile');
		$imgFile->setLabel('File Name');
		$imgFile->setDestination('../user_data');
		
		$submit = new Zend_Form_Element_Submit('Upload');
		
		$this->addElements(array(
		$nameField,
		$desc,
		$imgFile,
		$submit
		));
		
		$this->setDecorators(array(
			'FormElements',
			array('HtmlTag', array('tag' => 'dl')),
			'Form'
		));
		
	}
}